Build-Depends: debhelper (>= 7.0.0), quilt,
autotools-dev, autoconf,
libexpat1-dev, expat, help2man,
- fop [!mips],
- xsltproc, docbook-xml, docbook-xsl, libxml2-utils,
- libusb-dev, zlib1g-dev, libpaper-dev, libqt4-dev
+ libxml2-utils,
+ libusb-dev, zlib1g-dev, libqt4-dev
+Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml,
+ docbook-xsl, libpaper-dev
Standards-Version: 3.8.4
Homepage: http://www.gpsbabel.org/
Vcs-Browser: http://git.recluse.de/debian/pkg-gpsbabel.git/
Package: gpsbabel
Architecture: any
+Recommends: gpsbabel-doc
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GPS file conversion plus transfer to/from GPS units
GPSBabel converts waypoints, tracks, and routes from one format to
Tab-separated data, Tiger, TopoMapPro, Topo by National Geographic,
xcsv, xmap, xmapwpt.
+Package: gpsbabel-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: gpsbabel, pdf-viewer | www-browser
+Description: GPS file conversion plus transfer to/from GPS units
+ GPSBabel converts waypoints, tracks, and routes from one format to
+ another, whether that format is a common mapping format like Delorme,
+ Streets and Trips, or even a serial upload or download to a GPS unit
+ such as those from Garmin and Magellan.
+ .
+ GPSBabel supports dozens of data formats and will be useful for tasks
+ such as geocaching, mapping, and converting from one GPS unit to another.
+ Among the interesting formats it supports are several GPS devices via
+ a serial link, various PDA-based mapping programs, and various
+ Geocaching data formats.
+ .
+ This package contains the detailed documentation of gpsbabel.
+
Package: gpsbabel-gui
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
--- /dev/null
+Document: gpsbabel
+Title: gpsbabel filter and format documentation
+Section: Science/Geoscience
+
+Format: HTML
+Index: /usr/share/doc/gpsbabel/htmldoc/index.html
+Files: /usr/share/doc/gpsbabel/htmldoc/*.html
+
--- /dev/null
+Format: PDF
+Files: /usr/share/doc/gpsbabel/gpsbabel.pdf.gz
+
--- /dev/null
+debian/doctmp/* usr/share/doc/gpsbabel
--- /dev/null
+usr/share/doc/gpsbabel usr/share/doc/gpsbabel-doc/doc
+++ /dev/null
-Document: gpsbabel
-Title: gpsbabel filter and format documentation
-Section: Science/Geoscience
-
-Format: HTML
-Index: /usr/share/doc/gpsbabel/htmldoc/index.html
-Files: /usr/share/doc/gpsbabel/htmldoc/*.html
-
+++ /dev/null
-Format: PDF
-Files: /usr/share/doc/gpsbabel/gpsbabel.pdf.gz
-
README.*
-debian/doctmp/*
AUTHORS
gui/Makefile: $(QUILT_STAMPFN)
cd gui && qmake-qt4
-BUILD_TARGETS = build-stamp build-gui-stamp build-doc-stamp debian/gpsbabel.1
-build: $(BUILD_TARGETS)
+BUILD_TARGETS_ARCH = build-stamp build-gui-stamp debian/gpsbabel.1
+BUILD_TARGETS_INDEP = build-doc-stamp
+# indep targets are only built by binary-indep.
+build: $(BUILD_TARGETS_ARCH)
build-stamp: configure-stamp
dh_testdir
build-doc-stamp: configure-stamp
$(MAKE) $(DOCTEMP)/htmldoc-devel/index.html WEB=$(DOCTEMP) DOCVERSION=devel
- cp $(CURDIR)/debian/gpsbabel.doc-base-common $(CURDIR)/debian/gpsbabel.doc-base
+ cp $(CURDIR)/debian/gpsbabel-doc.doc-base-common $(CURDIR)/debian/gpsbabel-doc.doc-base
ifneq (mips,$(HOSTARCH))
$(MAKE) gpsbabel.pdf WEB=$(DOCTEMP) DOCVERSION=devel
rm -f $(CURDIR)/$(DOCTEMP)/htmldoc-devel/gpsbabel-$(DOCVERSION).pdf DOCVERSION=devel
cp gpsbabel.pdf $(CURDIR)/$(DOCTEMP)
- cat $(CURDIR)/debian/gpsbabel.doc-base-pdf >> $(CURDIR)/debian/gpsbabel.doc-base
+ cat $(CURDIR)/debian/gpsbabel-doc.doc-base-pdf >> $(CURDIR)/debian/gpsbabel-doc.doc-base
endif
touch $@
xmldoc/filters/options/track-trk2seg.xml \
xmldoc/filters/options/track-seg2trk.xml
rm -f gbversion.h
- rm -f $(CURDIR)/debian/gpsbabel.doc-base
+ rm -f $(CURDIR)/debian/gpsbabel-doc.doc-base
dh_clean
-install: $(BUILD_TARGETS)
+install-prep:
dh_testdir
dh_testroot
dh_prep
- dh_installdirs
+ dh_installdirs
+
+install-arch: $(BUILD_TARGETS_ARCH) install-prep
# Add here commands to install the package into debian/gpsbabel.
$(MAKE) install DESTDIR=$(CURDIR)/debian/gpsbabel
+ dh_install -a
+
+install-indep: $(BUILD_TARGETS_INDEP) install-prep
# Rename htmldoc dir
mv `ls -d $(CURDIR)/debian/doctmp/htmldoc-*` $(CURDIR)/debian/doctmp/htmldoc
- dh_install
+ dh_install -i
+
+install: install-arch install-indep
# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
+binary-indep: build-indep install-indep
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_link -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch: build-arch install-arch
dh_testdir
dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_installman
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installman -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install install-prep install-arch install-indep build-arch build-indep configure